const seq = require('sequelize')
const config = require('../../config')
const sequelize = new seq(
  config.mySqlDB.database,
  config.mySqlDB.username,
  config.mySqlDB.password,
  {
    dialect: config.mySqlDB.db,
    host: config.mySqlDB.host,
    port: config.mySqlDB.port,
    timezone: '+08:00',
    define: {
      underscored: true
    }
  }
)
module.exports = {
  sequelize
}
